<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<div class="layout">
		<input type="text" v-model.number="txt1" >
		<input type="text" v-model.trim="txt1">
		<input type="text" v-model.lazy="txt1">
		<input type="button" value="查看" v-on:click="watch">
	</div>
	<script src="vue221.js"></script>
	<script>
		var vm = new Vue({
			el:'.layout',
			data:{
				txt1:'',
			},
			methods:{
				watch:function(){
					alert(typeof this.txt1);
				},
			},
		});
	</script>
</body>
</html>
